<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="/static/js/axios-1.10.0.js"></script>
</head>
<body>
    <h1>OAuth2</h1>

    <hr>

    <p id="hash"></p>

    <script>
        setTimeout(() => {
            console.log(window.location.hash);
            document.getElementById('hash').innerHTML = window.location.hash;

            var hashValue = window.location.hash.substr(1);
            var arr = hashValue.split('&');
            var data = {};
            for (var i = 0; i < arr.length; i++) {
                var item = arr[i].split('=');
                data[item[0]] = item[1];
            }
            console.log(data);
        }, 1000);
    </script>
</body>
</html>